//
//  BIZArticleCommentCell.m
//  BIZ
//
//  Created by 小龙 on 2016/12/6.
//  Copyright © 2016年 com.jieshuibao1. All rights reserved.
//

#import "BIZArticleCommentCell.h"
#import "BIZArticleCommentModel.h"

@interface BIZArticleCommentCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@property (weak, nonatomic) IBOutlet UIImageView *certificationImageView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *certificationWidth;

@property (weak, nonatomic) IBOutlet UILabel *personalDetailLabel;
@property (weak, nonatomic) IBOutlet UILabel *levelLabel;

@end

@implementation BIZArticleCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setCommentModel:(BIZArticleCommentModel *)commentModel
{
    _commentModel = commentModel;
    // 头像
    [SDWebImageTool imageView:self.iconView
          imageName:commentModel.userType placeHolder:@"default-head" showProgress:YES];
    
    self.nameLabel.text = commentModel.userId;
    
    self.certificationWidth.constant = 17;

    self.contentLabel.text = commentModel.content;
    self.timeLabel.text = [NSDate stringFromTimestamp:commentModel.date];
}


//- (IBAction)userHomePageBtnClicked:(UIButton *)sender {
//    if (self.delegate && [self.delegate respondsToSelector:@selector(originalDetailCommentCellUserHomePageBtnDidClicked:)]) {
//        [self.delegate originalDetailCommentCellUserHomePageBtnDidClicked:self];
//    }
//    
//}

@end
